package com.woniuxy.caradmin.mapper;


import com.woniuxy.caradmin.entity.pojo.Driver;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface DriverMapper {
    //查询所有驾驶员信息
    public List<Driver> selectAllDriver();
    //增加驾驶员
    public Integer insertDriver(Driver driver);
    //删除驾驶员
    public Integer delectDriver(@Param("id") Integer id);
    //修改驾驶员
    public Integer updateDriver(Driver driver);
    //根据驾驶员的名字和电话模糊查询
    public List<Driver> selectNameAndPho(Driver driver);
    //id查询
    public Driver selectAllDriverByid(@Param("id") Integer id);

    Driver   selectOneDriver(Integer driverid);
}
